package chp13.home;

public class Home3 {

    public static void main(String[] args) {
        String content = "我爱我的祖国，我爱我的家乡我";
        String item = "我";
        for (int i = 0; i < content.length(); i++) {
            String temp = content.substring(i,i+1);
            if(item.equals(temp)) {
                System.out.println(i);
            }
        }
    }
}
